.inbiz-setter-multilingual-input {
  width: 100%;
  .mutilingual-btn {
    color: #999;
    &:hover {
      color: var(--inbiz-color-primary);
    }
  }
  .mutilingual-btn-active {
    color: var(--inbiz-color-primary);
  }
  .mutilingual-btn-disabled {
    color: #999;
    cursor: no-drop !important;
  }
  :global {
    .ant-input-affix-wrapper {
      padding: 4px 0 4px 11px;
    }
    .ant-input-suffix {
      display: flex;
      align-items: center;
      > a {
        display: flex;
        align-items: center;
        .anticon {
          padding-right: 11px;
          > svg {
            font-size: 14px;
          }
        }
      }
    }
  }
}

.multilingual-setter-language-window {
  width: 280px;
  min-height: 245px;
  max-height: 420px;
  padding: 15px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 2px;

  .search-input {
    width: calc(100% - 10px);
    margin: 5px 5px 0 5px;
    svg {
      font-size: 16px;
    }
  }

  .add-language-btn {
    display: inherit;
    margin: 10px auto;
    color: var(--inbiz-color-primary);
    transition: all ease 0.3s;
    &:hover,
    &:focus {
      color: #fff;
      background-color: var(--inbiz-color-primary);
    }
  }

  .add-language-btn-seatch {
    margin-top: 10px;
    text-align: center;
  }

  ul {
    li {
      position: relative;
      margin-top: 10px;
      padding: 2px 7px;
      overflow: hidden;
      font-size: 13px;
      white-space: nowrap;
      background-color: #f5f5f5;
      border-radius: 2px;
      > .window-item-shade {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: all ease 0.3s;
        pointer-events: none;
        > a {
          display: inline-block;
          width: 128px;
          height: 32px;
          color: #fff;
          font-size: 14px;
          line-height: 32px;
          text-align: center;
          background-color: var(--inbiz-color-primary);
          border-radius: 2px;
          &:hover {
            background-color: var(--inbiz-color-primary);
          }
        }
      }
      &:hover .window-item-shade {
        opacity: 1;
        pointer-events: auto;
      }

      :global {
        .ant-row {
          color: var(--inbiz-color-text);
        }
        .ant-col {
          overflow: hidden;
          font-size: 14px;
          line-height: 35px;
          text-overflow: ellipsis;
        }
        .ant-col-8 {
          text-align: right;
        }
      }
    }
  }

  .add-form {
    .edit-message {
      color: var(--inbiz-color-text);
      text-align: center;
    }
    :global {
      .ant-form-item {
        margin-bottom: 16px;
      }
      .ant-form-item:last-child {
        margin-bottom: 0;
      }
      .ant-form-item-label > label {
        color: var(--inbiz-color-text);
      }
      .ant-input {
        color: var(--inbiz-color-text);
      }
    }
  }

  .active-language {
    > p {
      color: var(--inbiz-color-primary);
      text-align: center;
    }
    .language-item {
      margin: 10px 0;
      padding: 2px 7px;
      overflow: hidden;
      font-size: 14px;
      background-color: #f5f5f5;
      border-radius: 2px;
    }
    :global {
      .ant-row {
        color: var(--inbiz-color-text);
      }
      .ant-col {
        overflow: hidden;
        font-size: 14px;
        line-height: 35px;
        text-overflow: ellipsis;
      }
      .ant-col-8 {
        text-align: right;
      }
    }
  }

  :global {
    .ant-space-align-end {
      justify-content: flex-end;
      width: 100%;
    }
    .ant-space-align-center {
      justify-content: center;
      width: 100%;
    }
  }
}

.popover-box {
  z-index: 1000 !important;
  :global {
    .ant-popover-arrow {
      display: none;
    }
    .ant-popover-inner {
      margin: -7px 0;
      transform: translateX(2px);
    }
    .ant-popover-inner-content {
      padding: 0;
    }
    .ant-input-affix-wrapper-status-error.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless) {
      border-color: var(--ant-primary-color);
      &:hover {
        border-color: var(--ant-primary-color);
      }
      &:focus {
        border-color: var(--ant-primary-color);
        box-shadow: 0 0 0 2px var(--ant-primary-color-outline);
      }
      &.ant-input-affix-wrapper-focused {
        border-color: var(--ant-primary-color);
        box-shadow: 0 0 0 2px var(--ant-primary-color-outline);
      }
    }

    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background-color: rgba(0, 0, 0, 0.2);
    }
  }
}

.dropdown-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
}
